package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

@Setter
@Getter
public class NormalCustomer {
    private Long id;

    private Date inputtime;

    private Customer customer;

    private SystemDictionaryItem course;

    private BigDecimal money;
    public String getJson(){
        Map<String,Object> map=new HashMap<>();
        map.put("id",id);
        map.put("customerId",customer.getId());
        map.put("customerName",customer.getName());
        map.put("courseName",course.getTitle());
        map.put("courseId",course.getId());
        map.put("money",money);
        return JSON.toJSONString(map);
    }
}